package cn.tedu.front.details.controller;


import cn.tedu.common.web.JsonResult;
import cn.tedu.front.details.pojo.vo.ListJobCategoryVO;
import cn.tedu.front.details.service.JobCategoryService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/jobCategory")
public class JobCategoryController {
    @Autowired
    JobCategoryService service;

    @ApiOperation("获取所有类别")
    @ApiOperationSupport(order = 100)
    @GetMapping("/get-all")
    public JsonResult getAllCarousel(){
        List<ListJobCategoryVO> listJobCategoryVOS = service.listAllCategory();
        return JsonResult.ok(listJobCategoryVOS);
    }
}
